<ul class="nav nav-pills nav-stacked">
             <li class="menus">
                <div class="menusa">
				  <a href="#">
				     <i class="fa fa-dashboard"></i>
				      <span>Dashboard</span>
				</a>
				</div>
			</li>
    <?php foreach ($this->container as $page): ?>
        <li class="menus">
           <div class="<?= $page->get('issub') == '1'? 'titlemenus ' : 'titlemenu '?><?= $page->isActive()? 'active' : 'drop' ?> menusa">
             <a href="<?= $page->getHref() ?>">
             <span><?= $page->getLabel() ?></span>
             </a>
            </div>
             <i id="actives_<?= $page->get('idm')?>" class="fa <?= $page->get('issub') == '1'? 'fa-plus-square-o' : 'fa-check-square-o' ?>"></i>
             <ul class="actives_<?= $page->get('idm')?>" id="hides">
                <?php  foreach ($page as $catpage) :?>
                 <li><a class="<?= $catpage->isActive()? 'active' : 'drop' ?> menusa" href="<?= $catpage->getHref() ?>">
                <span><?= $catpage->getLabel() ?></span>
                 </a>
                 <?= $catpage->isActive()? '<input type="hidden" class="active_class" value="actives_'.$catpage->get('idsub').'">' : null ?>
                        <ul>
                           <?php  foreach ($catpage as $subpage) :?>
                        <li><a <?= $subpage->isActive()? 'class="active"' : 'class="drop"' ?> href="<?= $subpage->getHref() ?>">
                        <span><?= $subpage->getLabel() ?></span>
                        </a></li>
                           <?php endforeach; ?>
                        </ul>  
                  </li>
                      <?php endforeach; ?>
                     
              </ul>
        </li>

     <?php endforeach; ?>
 </ul>
 